Magic Cookbook
last edited Fri, 09 Aug 2024 06:23:19 GMT
backlinks: null
cmd line stuff
IPs direct link to this section
curl ipinfo.io/54.90.107.240
Email direct link to this section
curl emailrep.io/john.smith@gmail.com
SSH Tunneling direct link to this section
ssh -L localport:127.0.0.1:remoteport user@host
Visualize like so: ssh -L 127.0.0.1:8080:127.0.0.1:80 user@host
SOCKS Proxy direct link to this section
SSH -D 8080 user@host
NMAP direct link to this section
- Scan with TCP connect
nmap -sT 192.168.0.1
- default SYN scan (half of TCP handshake)
nmap –sS 192.168.0.1
- scan UDP
nmap –sU –p 80,130,255 192.168.0.1
nmap -Pn -sS -sV -O -T 2 [TARGET IP] -p1-65535 > nmap.txt
Priviliege Escalation direct link to this section
sudo -l
ls -lah
id
# view groups
curl recepies direct link to this section
Download Files direct link to this section
Example below downloads from the target URL and stores the filename as thatpage.html
:
curl -o thatpage.html http://www.example.com/
Local file gets the name of remote document
curl -O http://www.example.com/index.html